package com.poly.flowable.mapper;

import com.poly.flowable.pojo.dto.FlowProcDefDTO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 流程定义查询
 *
 * @author Yang Huijing
 * @email
 * @date 2022/1/29 5:44 下午
 **/
public interface FlowTaskMapper {

    /**
     * 流程定义列表
     * @param name
     * @return
     */
    List<FlowProcDefDTO> selectDeployList(@Param("name") String name, @Param("category") String category);

    FlowProcDefDTO selectDeployByCategory(@Param("category") String category);

    HashMap<String,Object> getDeployByFormId(@Param("formId") Long formId);

    Long queryTodoDocDataCount(@Param("processInsIds") List<String> processInsIds, @Param("title") String title, @Param("type") String type);

    List<Map<String, Object>> queryTodoDocData(@Param("offset") int offset, @Param("pageSize") Integer pageSize, @Param("processInsIds") List<String> processInsIds, @Param("title") String title, @Param("type") String type);
}
